package org.nanotek.cms.domain.base;

import org.nanotek.Kong;
import org.nanotek.cms.domain.AbstractBase;

@SuppressWarnings({ "serial", "hiding" })
public class KongIdentity<E extends Kong<String>> extends AbstractBase<Kong<String>>{

    private Kong<String> kong;

//    public KongIdentity(Kong<String> string){
//    	this.kong = string;
//    }

	public KongIdentity(Kong<String> string) {

		this.kong = string;
	}


	public void setId(Kong<String> id)
    {
    	this.kong = id;
    }


	@Override
	public Kong<String> getId() {
		return kong;
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((kong == null) ? 0 : kong.hashCode());
		return result;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		KongIdentity other = (KongIdentity) obj;
		if (kong == null) {
			if (other.kong != null)
				return false;
		} else if (!kong.equals(other.kong))
			return false;
		return true;
	}

}
